import java.util.Scanner;

class UserInfo {
    private String uName;
    private String password;

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
        if (password.length() < 6) {
            System.out.println("长度不够");
        }
    }

    public boolean checkUser(String uName, String password) {
        if (this.uName.equals(uName) && this.password.equals(password)){
            System.out.println("身份验证成功");
            return true;
        } else {
            System.out.println("身份验证失败");
            return false;
        }
    }
}


public class UserInfoTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String info = scanner.next();
        String pass = scanner.next();
        UserInfo userInfo = new UserInfo();
        userInfo.setuName("admin");
        userInfo.setPassword("123456");
        userInfo.checkUser(info, pass);
    }
}
